#include <rte_thash.h>
#include <rte_tcp.h>
#include <rte_memory.h>

struct ipv4_hdr *ipv4_hdr;
struct tcp_hdr *tcp;

union rte_thash_tuple ipv4_tuple;
uint32_t hash;

uint8_t default_rss_key[] = {
        0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2,
        0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0,
        0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4,
        0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c,
        0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa,
};

uint8_t converted_rss_key[RTE_DIM(default_rss_key)];

struct ipv4_5tuple {
	uint8_t  proto;
	uint32_t ip_src;
	uint32_t ip_dst;
	uint16_t port_src;
	uint16_t port_dst;
}__rte_cache_aligned;
